package com.hkd.product_service.api;

import com.hkd.common.api.ApiResponse;
import com.hkd.product_service.api.entity.ProductSpecs;
import com.hkd.product_service.api.fallback.ProductPicInfoServiceImplFallback;
import com.hkd.product_service.api.fallback.ProductSpecsServiceImplFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author HKD
 * @date 2022/9/17 23:10
 */
@FeignClient(name = "product-service",
        contextId = "ProductSpecsService",
        fallbackFactory = ProductSpecsServiceImplFallback.class
)
public interface ProductSpecsService {

    @PostMapping("specstSaveBatch")
    ApiResponse<Integer> specsSaveBatch(@RequestBody List<ProductSpecs> specs);
}
